package com.billing.model.entity;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.javassist.expr.NewArray;

public class TUser {

	// 用户
	private Integer id;
	private String loginname;
	private String password;
	private String name;
	private String englishname;
	private String jobnumber;
	private Integer sex;
	private Long datebirth;
	private String datebirthString;
	private String origin;
	private Integer maritalstatus;
	private String mobile;
	private String qq;
	private String weixinid;
	private Integer sort;
	private String mail;
	private String language;
	private Integer status;
	private double hourlywage;
	private Long entrytime;
	private String entrytimeString;// 入职时间字符串格式
	private Integer nature;
	private Integer probationperiod;
	private Integer workplaceId;
	private String address;
	private Integer privateId;
	private Long createtime;
	private Long modifytime;
	private Integer schedulingId;;
	private String xmldata;
	private String nation;
	private String politicalstatus;
	private String speciality;
	private String highesteducation;
	private String professional;
	private String idcard;
	private String height;
	private String weight;
	private String vision;
	private String birthplace;
	private String referee;
	private Integer ifsend;
	private String sendaddress;
	private Integer whetheronline;
	private String token;
	private Long logintime;
	private int organizationId;
	private Integer examineStatus;
	private Integer jobStatus;
	private String archiving_time;
	
	
	// 时间戳
	private Long archivingTime;

	private TDept dept = new TDept();
	private TRoleMembers role = new TRoleMembers();
	private TUserEducation edu = new TUserEducation();
	
	private List<TUserScan> scanlist = new ArrayList<TUserScan>();
	private List<TUserEducation> educationlist = new ArrayList<TUserEducation>();
	private List<TUserWorkexperience> userWorkexperiencelist = new ArrayList<TUserWorkexperience>();
	private List<TUserEmergencycontact> userEmergencycontactlist = new ArrayList<TUserEmergencycontact>();
	private TUserPrivate userPrivate = new TUserPrivate();
	private List<TUserPay> paylist = new ArrayList<TUserPay>();
	private List<TSubsidy> sublist = new ArrayList<TSubsidy>();
	private List<TAnnualBonus> bonlist = new ArrayList<TAnnualBonus>();
	private TScheduling schelist = new TScheduling();
	private ManagerUsersBean managerUsersBean = new ManagerUsersBean();
	// private TUserPayReport payReport = new TUserPayReport();
	private TOrganization organization = new TOrganization();
	private List<TManagerPermissions> mplist = new ArrayList<TManagerPermissions>();
	SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");

	// public TUserPayReport getPayReport() {
	// return payReport;
	// }
	// public void setPayReport(TUserPayReport payReport) {
	// this.payReport = payReport;
	// }

	public Long getArchivingTime() {
		return archivingTime;
	}

	public TUserEducation getEdu() {
		return edu;
	}

	public void setEdu(TUserEducation edu) {
		this.edu = edu;
	}
	
	

	public String getArchiving_time() {
		return archiving_time;
	}

	public void setArchiving_time(String archiving_time) {
		this.archiving_time = archiving_time;
	}

	public void setArchivingTime(Long archivingTime) {
		this.archivingTime = archivingTime;
	}

	public String getDatebirthString() {
		return datebirthString;
	}

	public void setDatebirthString(String datebirthString) {
		this.datebirthString = datebirthString;
	}

	public TScheduling getSchelist() {
		return schelist;
	}

	public Integer getJobStatus() {
		return jobStatus;
	}

	public void setJobStatus(Integer jobStatus) {
		this.jobStatus = jobStatus;
	}

	public String getEntrytimeString() {
		return entrytimeString;
	}

	public void setEntrytimeString(String entrytimeString) {
		this.entrytimeString = entrytimeString;
	}

	public Integer getExamineStatus() {
		return examineStatus;
	}

	public void setExamineStatus(Integer examineStatus) {
		this.examineStatus = examineStatus;
	}

	public List<TManagerPermissions> getMplist() {
		return mplist;
	}

	public void setMplist(List<TManagerPermissions> mplist) {
		this.mplist = mplist;
	}

	public TOrganization getOrganization() {
		return organization;
	}

	public void setOrganization(TOrganization organization) {
		this.organization = organization;
	}

	public ManagerUsersBean getManagerUsersBean() {
		return managerUsersBean;
	}

	public void setManagerUsersBean(ManagerUsersBean managerUsersBean) {
		this.managerUsersBean = managerUsersBean;
	}

	public void setSchelist(TScheduling schelist) {
		this.schelist = schelist;
	}

	public int getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(int organizationId) {
		this.organizationId = organizationId;
	}

	public List<TAnnualBonus> getBonlist() {
		return bonlist;
	}

	public void setBonlist(List<TAnnualBonus> bonlist) {
		this.bonlist = bonlist;
	}

	public List<TUserPay> getPaylist() {
		return paylist;
	}

	public void setPaylist(List<TUserPay> paylist) {
		this.paylist = paylist;
	}

	public List<TSubsidy> getSublist() {
		return sublist;
	}

	public void setSublist(List<TSubsidy> sublist) {
		this.sublist = sublist;
	}

	public List<TUserScan> getScanlist() {
		return scanlist;
	}

	public void setScanlist(List<TUserScan> scanlist) {
		this.scanlist = scanlist;
	}

	public List<TUserEducation> getEducationlist() {
		return educationlist;
	}

	public void setEducationlist(List<TUserEducation> educationlist) {
		this.educationlist = educationlist;
	}

	public List<TUserWorkexperience> getUserWorkexperiencelist() {
		return userWorkexperiencelist;
	}

	public void setUserWorkexperiencelist(
			List<TUserWorkexperience> userWorkexperiencelist) {
		this.userWorkexperiencelist = userWorkexperiencelist;
	}

	public List<TUserEmergencycontact> getUserEmergencycontactlist() {
		return userEmergencycontactlist;
	}

	public void setUserEmergencycontactlist(
			List<TUserEmergencycontact> userEmergencycontactlist) {
		this.userEmergencycontactlist = userEmergencycontactlist;
	}

	public TUserPrivate getUserPrivate() {
		return userPrivate;
	}

	public void setUserPrivate(TUserPrivate userPrivate) {
		this.userPrivate = userPrivate;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Long getLogintime() {
		return logintime;
	}

	public void setLogintime(Long logintime) {
		this.logintime = logintime;
	}

	public Integer getWhetheronline() {
		return whetheronline;
	}

	public void setWhetheronline(Integer whetheronline) {
		this.whetheronline = whetheronline;
	}

	public String getNation() {
		return nation;
	}

	public void setNation(String nation) {
		this.nation = nation;
	}

	public String getPoliticalstatus() {
		return politicalstatus;
	}

	public void setPoliticalstatus(String politicalstatus) {
		this.politicalstatus = politicalstatus;
	}

	public String getSpeciality() {
		return speciality;
	}

	public void setSpeciality(String speciality) {
		this.speciality = speciality;
	}

	public String getHighesteducation() {
		return highesteducation;
	}

	public void setHighesteducation(String highesteducation) {
		this.highesteducation = highesteducation;
	}

	public String getProfessional() {
		return professional;
	}

	public void setProfessional(String professional) {
		this.professional = professional;
	}

	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	public String getHeight() {
		return height;
	}

	public void setHeight(String height) {
		this.height = height;
	}

	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}

	public String getVision() {
		return vision;
	}

	public void setVision(String vision) {
		this.vision = vision;
	}

	public String getBirthplace() {
		return birthplace;
	}

	public void setBirthplace(String birthplace) {
		this.birthplace = birthplace;
	}

	public String getReferee() {
		return referee;
	}

	public void setReferee(String referee) {
		this.referee = referee;
	}

	public Integer getIfsend() {
		return ifsend;
	}

	public void setIfsend(Integer ifsend) {
		this.ifsend = ifsend;
	}

	public String getSendaddress() {
		return sendaddress;
	}

	public void setSendaddress(String sendaddress) {
		this.sendaddress = sendaddress;
	}

	public TDept getDept() {
		return dept;
	}

	public void setDept(TDept dept) {
		this.dept = dept;
	}

	public TRoleMembers getRole() {
		return role;
	}

	public void setRole(TRoleMembers role) {
		this.role = role;
	}

	public Integer getSchedulingId() {
		return schedulingId;
	}

	public void setSchedulingId(Integer schedulingId) {
		this.schedulingId = schedulingId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getLoginname() {
		return loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEnglishname() {
		return englishname;
	}

	public void setEnglishname(String englishname) {
		this.englishname = englishname;
	}

	public String getJobnumber() {
		return jobnumber;
	}

	public void setJobnumber(String jobnumber) {
		this.jobnumber = jobnumber;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Long getDatebirth() {
		return datebirth;
	}

	public void setDatebirth(Long datebirth) {
		this.datebirth = datebirth;
		if(datebirth != null && !datebirth.equals("")){
			this.datebirthString = format.format(datebirth);
		}
	}

	public String getOrigin() {
		return origin;
	}

	public void setOrigin(String origin) {
		this.origin = origin;
	}

	public Integer getMaritalstatus() {
		return maritalstatus;
	}

	public void setMaritalstatus(Integer maritalstatus) {
		this.maritalstatus = maritalstatus;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getWeixinid() {
		return weixinid;
	}

	public void setWeixinid(String weixinid) {
		this.weixinid = weixinid;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public double getHourlywage() {
		return hourlywage;
	}

	public void setHourlywage(double hourlywage) {
		this.hourlywage = hourlywage;
	}

	public Long getEntrytime() {
		return entrytime;
	}

	public void setEntrytime(Long entrytime) {
		this.entrytime = entrytime;
		if (entrytime != null && !entrytime.equals("")) {
			this.entrytimeString = format.format(entrytime);
		}
	}

	public Integer getNature() {
		return nature;
	}

	public void setNature(Integer nature) {
		this.nature = nature;
	}

	public Integer getProbationperiod() {
		return probationperiod;
	}

	public void setProbationperiod(Integer probationperiod) {
		this.probationperiod = probationperiod;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getWorkplaceId() {
		return workplaceId;
	}

	public void setWorkplaceId(Integer workplaceId) {
		this.workplaceId = workplaceId;
	}

	public Integer getPrivateId() {
		return privateId;
	}

	public void setPrivateId(Integer privateId) {
		this.privateId = privateId;
	}

	public Long getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Long createtime) {
		this.createtime = createtime;
	}

	public Long getModifytime() {
		return modifytime;
	}

	public void setModifytime(Long modifytime) {
		this.modifytime = modifytime;
	}

	public String getXmldata() {
		return xmldata;
	}

	public void setXmldata(String xmldata) {
		this.xmldata = xmldata;
	}

	/**
	 * 用于用户资料比对镜像数据跟主体数据
	 */
	@Override
	public String toString() {
		return "TUser [loginname=" + loginname + ", password=" + password
				+ ", name=" + name + ", englishname=" + englishname
				+ ", jobnumber=" + jobnumber + ", sex=" + sex + ", datebirth="
				+ datebirth + ", origin=" + origin + ", maritalstatus="
				+ maritalstatus + ", mobile=" + mobile + ", qq=" + qq
				+ ", weixinid=" + weixinid + ", mail=" + mail + ", language="
				+ language + ", address=" + address + ", nation=" + nation
				+ ", politicalstatus=" + politicalstatus + ", speciality="
				+ speciality + ", highesteducation=" + highesteducation
				+ ", professional=" + professional + ", idcard=" + idcard
				+ ", height=" + height + ", weight=" + weight + ", vision="
				+ vision + ", birthplace=" + birthplace + ", referee="
				+ referee + ", ifsend=" + ifsend + ", sendaddress="
				+ sendaddress + ", organizationId=" + organizationId + "]";
	}
}
